package com.software;

public class Animal {
    private String name;
//    public Animal(){
//
//    }
    public Animal(String name){
        this.name = name;
    }
    public void move(){
        System.out.println(this.name + " 在移动");
    }

    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }
}
